package com.xidian.zhiancloud.dao.riskcontrol.riskevaluate;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskEvaMethSetCriteList;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 风险管控-系统设置-风险评价方法设置-两个字段
 */
public interface TRiskEvaMethSetCriteMapper extends BaseMapper<TRiskEvaMethSetCriteList> {

    List<Map<String,String>> getTRiskEvaMethSetCriteList(
            @Param("companyId") Long companyId,
                   @Param("evaMethodSetId") String evaMethodSetId,
            @Param("criteria") String criteria);

    List<Map<String, Object>> getByEvaMethodSetIdOneList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    List<Map<String, Object>> getByEvaMethodSetIdTwoList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    int addTRiskEvaMethSetCrite(@Param("data") TRiskEvaMethSetCriteList data);

    int updateTRiskEvaMethSetCrite(
            @Param("id") String id,
            @Param("data") TRiskEvaMethSetCriteList data);

    int deleteTRiskEvaMethSetCrite(List<String> list);
}
